'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.post('/api/login', controller.home.login);
  router.post('/api/index', controller.home.index);
  router.post('/api/userList', controller.home.userList);
  router.post('/api/adduserList', controller.home.adduserList);
  router.post('/api/deluserList', controller.home.deluserList);
  router.post('/api/updataUserList', controller.home.updataUserList);
};
